<template>
    <div class="main-layout">
        <!-- 左侧内容区 -->
        <div class="content-area">
            <slot></slot>
        </div>

        <!-- 右侧边栏 -->
        <div class="sidebar">
            <slot name="sidebar"></slot>
        </div>
    </div>
</template>

<style scoped>
.main-layout {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}
</style>